package org.haredot.service;

import org.haredot.dto.UserDTO;
import org.haredot.vo.PageVo;
import org.haredot.vo.ResultVo;
import org.haredot.vo.UserVo;

import java.util.List;

public interface UserService {
    ResultVo<?> queryUsers(PageVo<UserDTO> pageVo);

    ResultVo<?> queryDepartsRefUserId(Long userId);

    ResultVo<?> queryPositionsRefUserId(Long userId);

    ResultVo<?> bindRoles(Long userId, List<Long> roles);


    ResultVo<?> bindPosition(Long userId, List<Long> positions);

    ResultVo<?> queryRolesRefUserId(Long userId);

    ResultVo<?> saveUser(UserVo user);

    ResultVo<?> modifyUser(UserVo user);

    ResultVo<?> removeUser(Long userId);
}
